package org.pf.constructor.shapes
{
	import Box2D.Collision.Shapes.b2PolygonShape;
	import Box2D.Common.Math.b2Vec2;
	
	/**
	 * ...
	 * @author zeksa'
	 */
	public class B2DConvexShape extends b2PolygonShape
	{
		private var _vertices:Array = new Array();
		
		public function B2DConvexShape(vertices:Array)
		{
			for (var i:int = 0; i < vertices.length; i++)
			{
				_vertices.push(new b2Vec2(vertices[i][0] / 30, vertices[i][1] / 30));
			}
			SetAsArray(_vertices, _vertices.length);
		}
	
	}

}